package com.hyacinth.core.sysmgr.domain;

import com.hyacinth.common.framework.Domain;

import javax.persistence.*;

/**
 * Created by ljq on 2014/7/18.
 * 系统的菜单对应的功能的实体类
 */
@Entity
@Table(name = "sys_operation")
public class SysOperation extends Domain {

    private String name;

    private String url;

    private SysMenu menu;

    @ManyToOne
    @JoinColumn(name = "menu_id")
    public SysMenu getMenu() {
        return menu;
    }

    public void setMenu(SysMenu menu) {
        this.menu = menu;
    }

    @Column(name = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
